package com.yifang.yibingproject.query;

import com.yifang.yibingproject.utils.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/*
 * @author  yht
 * @date  2021/3/2 0002 15:59
 * @Email:2742357125@qq.com
 */
@Data
@ApiModel("求购分页查询DTO")
public class ForbiddenPageQuery extends PageQuery {

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("用户类型 0:普通，1-会员，2-批发")
    private String type;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("上次消费开始时间")
    private LocalDateTime startCostTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("上次消费结束时间")
    private LocalDateTime endCostTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("注册开始时间")
    private LocalDateTime startCreateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("注册结束时间")
    private LocalDateTime endCreateTime;
}
